package com.navinfo.app.hd

import android.content.Context
import com.badlogic.gdx.graphics.glutils.GLVersion
import org.oscim.backend.GLAdapter
import org.oscim.gdx.AndroidGL
import org.oscim.gdx.AndroidGL30
import org.oscim.gdx.GdxMap

class GdxMapAndroid : GdxMap {
    lateinit var mContext: Context

    constructor(context: Context): super() {
        mContext = context
    }

    override fun initGLAdapter(version: GLVersion) {
        if (version.majorVersion >= 3) GLAdapter.init(AndroidGL30()) else GLAdapter.init(
            AndroidGL()
        )
    }

    override fun createLayers() {
        // /storage/emulated/0/china.map

    }

    override fun pause() {
        super.pause()
    }
}